// implements 实现多个接口
abstract class A {
  String name =  '小狗';
  printA();
}

abstract class B {
  int age =  2;
  printB();
}

class C implements A, B {
  @override
  int age = 1;

  @override
  String name =  '小黄';

  @override
  printA() {
    print('打印a');
  }

  @override
  printB() {
    print('打印b');
  }
}

void main () {
  C c = new C();
  c.printA();
  c.printB();
}